package com.tansun.easycare.rule.ruleproj.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.rule.common.entity.RuleBaseEntity;

/**
 * 项目引用关系Entity
 * @author lph
 * @version 2019-09-12
 */
public class RuleProjectReference extends RuleBaseEntity<RuleProjectReference> {
	
	private static final long serialVersionUID = 1L;
	private String projectCode;		// 规则项目编号
	private String referenceProjectName;		// 引用规则项目名称
	private String referenceProjectCode;		// 引用规则项目编号
	private String status;		// 是否删除（）
	
	public RuleProjectReference() {
		super();
	}

	public RuleProjectReference(String id){
		super(id);
	}

	@Length(min=0, max=50, message="规则项目编号长度必须介于 0 和 50 之间")
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	@Length(min=0, max=50, message="引用规则项目名称长度必须介于 0 和 50 之间")
	public String getReferenceProjectName() {
		return referenceProjectName;
	}

	public void setReferenceProjectName(String referenceProjectName) {
		this.referenceProjectName = referenceProjectName;
	}
	
	@Length(min=0, max=50, message="引用规则项目编号长度必须介于 0 和 50 之间")
	public String getReferenceProjectCode() {
		return referenceProjectCode;
	}

	public void setReferenceProjectCode(String referenceProjectCode) {
		this.referenceProjectCode = referenceProjectCode;
	}
	
	@Length(min=0, max=10, message="是否删除（）长度必须介于 0 和 10 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}